<%@ include file="/taglibs.jsp"%>
<s:if test="%{attachFiles.isEmpty}">
	<tr class="empty"><td colspan="5"><s:text name="basic.msg.empty_list"></s:text> </td></tr>
</s:if>
<s:iterator value="attachFiles" var="attachFile">
<tr>
	<td>
		<s:hidden name="attachFileId" value="%{id}" theme="simple"></s:hidden>
		<s:property value="attachFileName"/>
	</td>
	<td align="center">
		<s:property value="numberOfCopy"/>
	</td>
	<td>
		<input size="2" name="numberOfCopy" value="<s:property value="numberOfCopy"/>">
	</td>
	<td>
		<select name="documentTypeId">
		<s:iterator value="documentTypes">
			<option value='<s:property value="id"/>'>
				<s:if test="%{#attachFile.documentType.id eq id}">
					<s:property value="name"/>(<s:text name="documentType.required"></s:text>)	
				</s:if>
				<s:else>
					<s:property value="name"/>
				</s:else>
			</option>
		</s:iterator>
		</select>
	</td>
	<td>
		<input type="checkbox" class="cb-element" checked="checked">
		<s:hidden name="checked" value="true" theme="simple"></s:hidden>
	</td>
</tr>
</s:iterator>